home *** CD-ROM | disk | FTP | other *** search
/ Enter 2003 November / EnterCD 11_2003.iso / Internet / Eudora 6.0 / Eudora_6.0.exe / data1.cab / plugins / SpamHeaders.txt < prev    next >
Encoding:
Text File  |  2003-09-10  |  1.7 KB  |  37 lines

  1. # These are the settings for SpamHeaders
  2. # Lines starting with a '#' are ignored
  3. # Each line defines a spam filter
  4. #    A filter scores a header, and gives a score between 0 and 100, with 0
  5. #        meaning "Not Spam", and 100 meaning "Spam"
  6. #
  7. # A filter consists of 5 parts:
  8. #    A pattern to match the entire header against
  9. #    Score - this is only used in the case of "kTextTag" - if the text matches use this score.
  10. #    Offset - offset the score from this value.
  11. #    Scale - Scale the value by this value.    
  12. #    A description of what the sub-patterns are. This takes one of four types:
  13. #        kTextIntMatch - value is an integer
  14. #        kTextFloatMatch - value is a floating point number
  15. #        kTextTag - value is a string literal
  16. #        kCharacterCount - value's length is the important thing
  17. #
  18. #    For example, Postini gives you a score that is between 0 .. 100, with low scores being spam.
  19. #        We give them a scale of -1, and an offset of 100; between them, this scales the scores into
  20. #            the range that we want. 
  21.  
  22. # PerlMX - no scaling, since the scores are already 0 .. 100
  23. "X-Perlmx-Spam:.*Probability=([0-9]+).*" 0 0 1 kTextIntMatch
  24.  
  25. # Pure Message - no scaling, since the scores are already 0 .. 100
  26. "X-Puremessage-Spam:.*Probability=([0-9]+).*" 0 0 1 kTextIntMatch
  27.  
  28. # Spam Assassin (both forms)
  29. # The actual score is 0 .. 10, so we scale by a factor of 10
  30. "X-Spam-Score:.*\((\*+)\).*" 0 0 10 kCharacterCount
  31.  
  32. # If the text matches, we give it a score of 99
  33. "X-Spam-Flag: YES.*" 99 0 1 kTextTag
  34.  
  35. # Postini - several differenct scores; we picke the one that gives us the highest score.
  36. "X-pstn-levels: +\(C:([0-9\.]+) M:([0-9\.]+) P:([0-9\.]+) R:([0-9\.]+) +S:([0-9\.]+) \).*" 0 100 -1 kFloatIntMatch
  37.